package com.tcoiss.datafactory.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tcoiss.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 消息主题发布对象 mq_topic
 * 
 * @author zw
 * @date 2021-05-13
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mq_topic")
public class MqTopic implements Serializable {

private static final long serialVersionUID=1L;


    @TableId(type = IdType.AUTO)
    private Long id;

    /** 主题编码 */
    @Excel(name = "主题编码")
    private String topicCode;

    /** 主题名称 */
    @Excel(name = "主题名称")
    private String topicName;

    /** 创建时间 */
    private Date createTime;

    /** 修改时间 */
    @Excel(name = "修改时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

    /** 发布状态 */
    @Excel(name = "发布状态")
    private Integer dataLevel;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
